class Car:
    def __init__(self,luntai,yanse,chuanhu,xinghao):
        self.luntai=luntai
        self.yanse=yanse
        self.chuanhu=chuanhu
        self.xinghao=xinghao
    def guadang(self):
        print(f"{self.xinghao}挂挡")
    def qianjin(self):
        print("前进")
    def houtui(self):
        print("后退")
    def wurenjiashi(self):
        print("无人驾驶汽车")
    def shache(self):
        print("刹车")
    def jiayou(self):
        print("加油")

c1=Car("米其林","黑色","4个","法拉利")
c1.shache()
c1.houtui()
c1.qianjin()
c1.guadang()
c1.jiayou()
c1.wurenjiashi()


